﻿#region Copyright (c) Lokad 2009 - 2010
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion

using Autofac.Builder;
using Lokad.Monitoring.Persistence.Repositories;

namespace Lokad.Monitoring.Repositories
{
    /// <summary>
    /// Defines an Autofac module for repositories.
    /// </summary>
    public sealed class RepositoriesModule : Module
    {
        protected override void Load(ContainerBuilder builder)
        {
            builder.Register(c => new EndpointRepository()).FactoryScoped();
            builder.Register(c => new ReportRepository()).FactoryScoped();
            builder.Register(c => new ResponseRepository()).FactoryScoped();
            builder.Register(c => new UserRepository()).FactoryScoped();
        }
    }
}
